import 'package:json_annotation/json_annotation.dart';

import 'EcyGoodsSkuModel.dart';
part 'EcyGoodsSkuListModel.g.dart';

@JsonSerializable()
class EcyGoodsSkuListModel {
  int pages;
  int size;
  int total;
  int current;
  List<EcyGoodsSkuModel> records;
  EcyGoodsSkuListModel(this.pages, this.size, this.total, this.current, this.records);

  // 从JSON创建User实例的工厂方法
  factory EcyGoodsSkuListModel.fromJson(Map<String, dynamic> json) =>
      _$EcyGoodsSkuListModelFromJson(json);

  // 将User实例转换为JSON的方法
  Map<String, dynamic> toJson() => _$EcyGoodsSkuListModelToJson(this);
}
